package com.jianzhangg.springboot2.service.impl;

import com.jianzhangg.springboot2.bean.UserDO;
import com.jianzhangg.springboot2.dao.UserDao;
import com.jianzhangg.springboot2.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author: jian.zhangg
 * @date: 2018/12/11 10:53
 * @version: V1.0
 * @Description: TODO
 */
@Service
public class IUserServiceImpl implements IUserService {

    @Autowired
    private UserDao userDao;

    @Override
    public Integer addUser(UserDO userDO) {
        return userDao.addUser(userDO);
    }


    @Override
    public UserDO selectById(Long id) {
        return userDao.selectById(id);
    }
}
